package com.example.demo.service.impl;

import com.example.demo.dao.Campus_picDao;
import com.example.demo.dao.Publicity_photoDao;
import com.example.demo.entity.Campus_pic;
import com.example.demo.entity.Publicity_photo;
import com.example.demo.service.Publicity_photoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class Publicity_photoServiceImpl implements Publicity_photoService {
    //注入Mapper接口对象
    @Resource
    private Publicity_photoDao publicity_photoDao;
    @Override
    public List<Publicity_photo> listPublicity_photo() {
        return publicity_photoDao.listPublicity_photo();
    }

    @Override
    public int insertPublicity_photo(Publicity_photo publicity_photo) {
        return publicity_photoDao.insertPublicity_photo(publicity_photo);
    }

    @Override
    public void deletePublicity_photo(int id) {
        publicity_photoDao.deletePublicity_photo(id);
    }

    @Override
    public Publicity_photo selectidPublicity_photo(int id) {
        return publicity_photoDao.selectidPublicity_photo(id);
    }
}
